<?php
namespace app\admin\validate;
use think\Validate;

/**
 * 广告信息验证器
 * Created by PhpStorm.
 * User: tyll
 * Date: 2020/04/26
 * Time: 10:41
 */
class Adv extends Validate{

    protected $rule = [
        'pic'   => 'require'
    ];

    protected $message = [
        'pic.require'   => '图片必须填写'
    ];

    protected $scene = [
        'add'  => ['pic'],
        'edit' => ['pic']
    ];
}